<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<div class="simple-form well container">
	<form id="code-confirm-form" class="clearfix" action="" method="post">
		<h4><fmt:message key="forget.reset.tips.title" /></h4>
		<p>请输入您帐号绑定的手机号</p>
		<br>
		<label class="control-label" for="username">手机号</label>
		<input type="text" id="phone" name="username"  class="span5 required">
		<div class="password-meter" style="display:inline-block; position: absolute; margin-left: 10px;">
			<div class="password-meter-bg">
				<div class="password-meter-bar password-meter-too-short"></div>
			</div>
		</div> 
		<label class="control-label" for="code">验证码</label>
		<input type="text" id="confirmCode" name="code" class="span3 required">
		<a id="forget-code" class="btn code-btn forget-code">点击获取手机验证码</a>
		<br>
		<div class="raise-submit" id="code-submit-btn" type="submit" style="margin-left:46%;font-size:14px;text-align:center;line-height:35px;min-width: 80px !important;">提交
		</div>
	</form>
	<form id="forget-reset-form" action="" method="post">
		<input type="hidden" name="loginName" value="" class="user-id">
		<h4><fmt:message key="forget.reset.tips.title" /></h4>
		<p><fmt:message key="forget.reset.tips.content" /></p>
		<br>
		<label class="control-label" for="username"><fmt:message key="forget.reset.password" /></label>
		<input type="password" id="password" name="code"  class="span5 required">
		<div class="password-meter" style="display:inline-block; position: absolute; margin-left: 10px;">
			<div class="password-meter-bg">
				<div class="password-meter-bar password-meter-too-short"></div>
			</div>
		</div> 
		<label class="control-label" for="username"><fmt:message key="forget.reset.confirmPassword" /></label>
		<input type="password" id="confirmPassword" name="confirmPassword" class="span5 required" equalTo="#password">
		<br>

		<div class="raise-submit" id="submit" type="submit" style="margin-left:46%;font-size:14px;text-align:center;line-height:35px;min-width: 80px !important;">
			<fmt:message key="forget.reset.button.submit" />
		</div>
	</form>

</div>
<c:if test="${env == 'production' }">
<script type="text/javascript">
seajs.use("${ctx}/assets/js-dist/account/forget-rest-page");
</script>
</c:if>
<c:if test="${env != 'production' }">
<script type="text/javascript">
seajs.use("${ctx}/assets/js/account/forget-rest-page");
</script>
</c:if>
